public class TestWhile01 {
    public static void main(String[] args){

        /*int a = 0;
        while (a<3){
            System.out.println("I love u!---"+a);
            a++;
        }*/


        int i = 0;
        int sum = 0;
        while(i<=100){
            sum = sum+i;
            i++;
        }
        System.out.println("1到100的和为："+sum);
    }
}
